package com.microservice.api.consumer.fallback;

import com.microservice.api.consumer.RemoteConsumerService;
import com.microservice.core.domain.AjaxResult;
import org.springframework.stereotype.Component;

/**
 * 当不使用FallbackFactory时,使用此Fallback
 */
@Component
public class RemoteConsumeFallback implements RemoteConsumerService {
    @Override
    public AjaxResult getConsumeMessage() {
        return AjaxResult.error("AjaxResult获取消费信息失败");
    }

    @Override
    public AjaxResult consumeMessagePost() {
        return AjaxResult.error("AjaxResult提交消费者信息失败");
    }
}
